package com.baidu.qianfan.entity;

import lombok.Data;

import java.util.List;

/**
 * 文心一言调用响应返回对象
 */
@Data
public class ERNIESpeed128KBody {
    private String id;
    private String object;
    private int created;
    private int sentence_id;
    private boolean is_end;
    private boolean is_truncated;
    private String result;
    private boolean need_clear_history;
    private int ban_round;
    private UsageObject usage;
    private String error_code;
    private String error_msg;


    @Data
    public static class UsageObject {
        private int prompt_tokens;
        private int total_tokens;
        private int completion_tokens;
    }
}
